//
//  Define.h
//  Auditory
//
//  Created by 寒竹子 on 15/4/28.
//  Copyright (c) 2015年 寒竹子. All rights reserved.
//

#ifndef Auditory_Blog_Define_h
#define Auditory_Blog_Define_h

// 定义调试开关
#ifdef __OPTIMIZE__
#define NSLog(...){}
#else
#define NSLog(...)  NSLog(__VA_ARGS__)

#endif

// 屏幕尺寸
#define MainScreen_Size [UIScreen mainScreen].bounds.size

// 设备定义
#define iPhone4S    (MainScreen_Size.height == 480? YES: NO)
// iPhone5 == iPhone5S
#define iPhone5S    (MainScreen_Size.height == 568? YES: NO)
#define iPhone6     (MainScreen_Size.height == 667? YES: NO)
#define iPhone6Plus (MainScreen_Size.height == 736? YES: NO)

#define TextFont(a) [UIFont fontWithName:@"Arial Unicode MS" size:(a)]
#define TextFontWithSize(a) [UIFont fontWithName:@"Arial Unicode MS" size:(a)]

#define RGBCOLOR(r,g,b,a) [UIColor colorWithRed:(r) / 255.0f green:(g) / 255.0f blue:(b) / 255.0f alpha:(a)]

#define RGB(r,g,b,a)  [UIColor colorWithRed:(r) / 255.0f green:(g) / 255.0f blue:(b) / 255.0f alpha:(a)]

// 显示/隐藏AudioToolBar的通知
#define KShowAudioToolBarNotification   @"ShowAudioToolBarNotification"
#define KHiddenAudioToolBarNotification @"HiddenAudioToolBarNotification"

// 系统通知宏定义
#define XRRadioViewStatusNotifiCation @"XRRadioViewStatusNotifiCation"

#define XRRadioViewSetSongInfoNotifiCation @"XRRadioViewSetSongInfoNotifiCation"

#endif
